package com.ld.control.business.task.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * <p>
 * 任务实例与流程实例关联关系表,一般是放的初始化流程和结束流程
 * </p>
 *
 * @author wangfeng
 * @since 2024-05-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("task_process_example")
@Schema(description = "TaskProcessExampleModel对象")
public class TaskProcessExampleModel implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "任务实例id")
    private Long taskExampleId;

    @Schema(description = "任务流程id")
    private Long processExampleId;


    public static final String ID = "id";

    public static final String TASK_EXAMPLE_ID = "task_example_id";

    public static final String PROCESS_EXAMPLE_ID = "process_example_id";

}
